package my.edu.model.bills.purchase.entity.vo;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import jakarta.validation.groups.Default;
import lombok.Data;
import my.edu.common.validate.groups.Insert;
import my.edu.common.validate.groups.Purchase;
import my.edu.common.validate.groups.Sales;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
public class PurchaseDetailOrderVO {
    private Long productId;
    private String productNo;
    private String productName;
    private String brand; // 品牌
    private String productRemark;
    private String productAttributes; // 商品属性
    private String unit; // 单位
    private Integer quantity; // 数量
    private String specificationModel;//规模型号
    private BigDecimal amountAfterDiscount;
    private String basicUnit; // 基本单位

    private Integer availableStock; // 可用库存
    private Integer isGift; // 是否赠品
    private LocalDate deliveryDate; // 交货日期

    private BigDecimal purchasePrice; // 购货单价


    private BigDecimal taxInclusivePrice; // 含税单价
    private BigDecimal discountRate; // 折扣率（%）
    private BigDecimal discount; // 折扣（折）
    private BigDecimal discountAmount; // 折扣额

    private BigDecimal taxRate; // 税率（%）
    private BigDecimal taxAmount; // 税额
    private BigDecimal priceTaxTotal; // 价税合计
    private Long warehouseId; // 仓库ID

    private String warehouseName;
    private BigDecimal procurementCost; // 采购费用
    private String remark;
}
